package alf.mapping.core;

import android.util.Log;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import alf.mapping.data.SimpleLoader;
import java.io.ObjectInput;

public class Factory {
	public static String LOADER = "alf.mapping.data.Loader";
	private Factory() {}

	public static Object createService(String name) {
	
		if (name.equals(LOADER)) {
			return new SimpleLoader();
		}
		Log.w("MAPPING","Factory: unknown service " + name );
		return null;
	} 
	
	/** constructor privado */
	public static List createList() {
		return new ArrayList();
	}
	
	
	public static Map createMap() {
		return new HashMap();
	}
}
